package com.ruyuan.payment.page.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.Environment;

@SpringBootApplication
@ComponentScan("com.ruyuan")
public class PageApplication {

    private static final Logger LOG = LoggerFactory.getLogger(PageApplication.class);

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(PageApplication.class);
        Environment env = app.run(args).getEnvironment();
        LOG.info("网站: \thttp://127.0.0.1:{}/login", env.getProperty("server.port"));
        LOG.info("控台: \thttp://127.0.0.1:{}/admin/login", env.getProperty("server.port"));
    }
}
